package com.coderman.infosys.auth.api.facade.authority;

import com.coderman.infosys.auth.api.dto.authority.request.CreateAuthorityRequestDTO;
import com.coderman.infosys.auth.api.dto.authority.request.UpdateAuthorityRequestDTO;
import com.coderman.infosys.auth.api.dto.authority.AuthorityDTO;
import com.coderman.infosys.plat.auth.common.dto.ResultDataDto;


/**
* @Description:接口
* @Author:
* @CreateTime:2022-01-02 15:27:39
* @version v1.0
*/
public interface AuthorityFacade{

	/**
	 *
	 * @Description 给角色授权
	 * @param createAuthorityRequestDTO
	 * @return AuthorityDTO
	 */
	ResultDataDto<AuthorityDTO> authToRole(CreateAuthorityRequestDTO createAuthorityRequestDTO);

	/**
	 *
	 * @Description 给角色更新权限
	 * @param updateAuthorityRequestDTO
	 * @return Boolean
	 */
	ResultDataDto<Boolean> updateAuthToRole(UpdateAuthorityRequestDTO updateAuthorityRequestDTO);

}